import random
import time

#random从[0,1)产生随机的浮点数
# while True:
#     time.sleep(0.5)
#     print(random.random())

# # randint[a,b]从a,b中随机选择一个整数 前提条件是a<b
# while True:
#     time.sleep(0.5)
#     print(random.randint(0,10))
#
#uniform[a,b],从a到b或者b到a之间随机生成浮点数
# while True:
#     time.sleep(0.5)
#     print(random.uniform(5, 1))

#choice从序列中随机取出一个元素 [str] [list] [tuple]
# while True:
#     time.sleep(0.5)
    # print(random.choice([1, 6, 6, 4, 8, 6, 'a', '我真帅']))
    # print(random.choice((1,6,5,'5',5,6,7,9)))
    # print(random.choice('sarasrata'))

# shuffle打乱列表数据重新返回一个列表
# list=[1,6,3,7,8]
# while True:
#     time.sleep(0.5)
#     random.shuffle(list)
#     print(list)


# sample 随机从序列中返回k个元素
while True:
    time.sleep(0.4)
    # print(random.sample([1, 6, 6, 4, 8, 6, 'a', '我真帅'],4))
    # print(random.sample((1, 5, 6, 4, 5, '哈哈哈'), 3))
    # print(random.sample(('asfgasgasgasrqe00'), 4))





